/**
 * Mutations业务层数据提交
 */
import storage from "../utils/storage";

export default {
    saveUserInfo(state,userInfo) {
        state.userInfo = userInfo;
        storage.setItem('userInfo',userInfo)
    },
    changeMenuList(state, menuList) {
        //列表菜单
        state.menuList = menuList;
        storage.setItem("menuList", menuList);
    },
    changeDeptList(state, deptList) {
        //列表部门
        state.deptList = deptList;
        storage.setItem("deptList", deptList);
    },
}